home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmSavings
- BorderStyle = 1 'Fixed Single
- Caption = "Savings Account"
- ClientHeight = 3075
- ClientLeft = 3735
- ClientTop = 1635
- ClientWidth = 3135
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 3075
- ScaleWidth = 3135
- Begin VB.CommandButton cmdExit
- Caption = "Exit"
- Height = 495
- Left = 1680
- TabIndex = 7
- Top = 2400
- Width = 1215
- End
- Begin VB.CommandButton cmdCompute
- Caption = "Compute"
- Height = 495
- Left = 240
- TabIndex = 6
- Top = 2400
- Width = 1215
- End
- Begin VB.TextBox txtWeeks
- BeginProperty Font
- Name = "Arial"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 1680
- TabIndex = 5
- Top = 960
- Width = 1215
- End
- Begin VB.TextBox txtDeposit
- BeginProperty Font
- Name = "Arial"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 1680
- TabIndex = 4
- Top = 240
- Width = 1215
- End
- Begin VB.Label lblTotal
- BackColor = &H00FFFFFF&
- BorderStyle = 1 'Fixed Single
- BeginProperty Font
- Name = "Arial"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 1680
- TabIndex = 3
- Top = 1680
- Width = 1215
- End
- Begin VB.Label lblTotalHeading
- Caption = "Total Savings"
- BeginProperty Font
- Name = "Arial"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 240
- TabIndex = 2
- Top = 1680
- Width = 1215
- End
- Begin VB.Label lblWeeksHeading
- Caption = "Number of Weeks"
- BeginProperty Font
- Name = "Arial"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 240
- TabIndex = 1
- Top = 960
- Width = 1215
- End
- Begin VB.Label lblDepositHeading
- Caption = "Weekly Deposit"
- BeginProperty Font
- Name = "Arial"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 240
- TabIndex = 0
- Top = 240
- Width = 1215
- End
- Attribute VB_Name = "frmSavings"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Dim Deposit As Integer
- Dim Weeks As Integer
- Dim Total As Integer
- Private Sub cmdCompute_Click()
- 'Get deposit amount
- Deposit = Val(txtDeposit.Text)
- 'Get number of weeks
- Weeks = Val(txtWeeks.Text)
- 'Compute total savings
- Total = Deposit * Weeks
- 'Display Total
- lblTotal.Caption = "$" + Str(Total)
- End Sub
- Private Sub cmdExit_Click()
- End Sub
-